added custom pan controls