updated base controller before render