added loggin to allcontrollers