Adds controller for CustomQuery tab