Removed logic from views and support drafts/unpublishing posts