How to display a form according to its category