splitting controller into 2