Initialize basic UI and setting event handler