refactor panels controller to user q module