Updated functions removing hide and show and removed unused less