Start moving pan view search code to its own module