Use ajax request for adding note