added simple navigation
replaced location service by window