Cannot find 'main' template with page 'detail'