added framework for cursor movement