Initial events and UI reset