Minor changes, cleaning up code
cleaning up code for slider
simplifying clider code
minor update