refactored. call to glassdoor api is in main
added dialog.