restructure home module code to conform to Angular best practices
restructure location module code to conform to Angular best practices