Added refresh gui when activated profile changed or event state changed