auto close panel on link click