Added schedule publish/unpublish buttons on entry form + some code cleanup.