updated ui
added typedef for save input values