Code cleanup

Added close event handler
Added UpdateTitle()
Renamed slot on_Changed() -> textChanged()