refactor conditional
test response is right in NotesController
test response and redirection in TechniquesController