adding ModelAttribute method to the generic controller