add checkpublish template file and publish form class