adding controller and dao