added edit button, remove spaces at begin of string in select ui