prevent browser from changing the type when no type selected