added functionality to locate button