fixed bug where program crashes if map opened twice
Search optimised so it is now handeled directly by main activity