setting the ui with save option