can create and destroy notes on the appropriate routes.
more refactoring