optimize ui of publish