moving the google maps handling to directives and adding controller for navigation