Added esc refresh function