adding controller with two queries