Add view panning hopefully
Fix compiler errors. Panning works!