update dropdown method