change html code for sidebar into event/view to sidebar widget