more simple zoom pan code