fixes saving notes
fix current user id
cleanup oauth process
save note when the view disappears