added error messaging, hooked up map & search to chart