Added gotoLocation on template