add code to modal select