Can not find 'main' template with page 'detail'