refactored and added <select> editor