learn how to pan a view