Added function to change the type drop-down when active is changed.