Fixed template calls in basecontroller