added new functionality to ui regarding input of data