changed the trigger event for opening the side bar

Now triggers when the user is within a certain range to make it a little
more user friendly. Also no longer  expands when the user is
highlighting something