refactor to use angular-foundation library, modal and maps api