added drag functionality
moved width and height into class