fixed bug in delete note controller redirect