moving the select tag and generate the password when setting the ui