changed adding note form to ajax