Add functionality that close border navigation on overlay click.