Fix switching form types in form view