customized the PHP structure of Sticky Notes from http://tutorialzine.com/2010/01/sticky-notes-ajax-php-jquery/