added static pan and zoom and fixed a couple bugs