refactor info window hide event