refactored ajax note submit to take data option instead of passing through url