updated ui, finished api endpoint