saving previous view position