Added Ajax support for publish & unpublish.