add bootstrap switch and change page index to show the published equals true