added functionality to create new pane when trying to move to non-existent pane