Refactor My Location button and compass button