get window position remembering working and add angular