Defining controllers into module instead as global