added code for moving obj frame