added flush button to ui