moved menu queries to application controller