Updated UI
Events
Added preview window
and more in code