added on show event to the listener