added set selection to lua