Factored the code in order to have a universal showForm() function which works for all controllers!