add select box to popup
using sRck way to check error
minor fix