change ui, add btnDiscard and its connection