fixed pan position saved in workspace

pan and zoom is now saved when switching tools in the workspace