Added moving functionality to buttons