fix save and publish buttons