Extracted base controller functionality into Fmg controller