fixing ajax request on notes