refactored and fixed swipe control
small bug
transition function, but its not animating. waiting on stack overflow question