added pan controls