set move cursor boundaries