adding ajax to note posting