factor out the Results View and Map into separate files