Hiepluong dev

improve sidebar task, using jQuery ajax for all actions
If you post data is properly formatted, you can do something like cnp.update_attributes(..), check update_attributes out. And get rid of this case statement.