fix space in input and updated UI