added more functionality to the button, worked on smoothing