Added slider and did some code updates