add out class event and update view