Adds ajax to publish button and changes drafts number automatically