Disclosed herein are KCNQ potassium channels modulators of formula (I)wherein G1, R2, R1a, R1b, X, X1, X2, X3, Rx, J, k, n, q, and t are as defined in the specification. Compositions comprising such compounds; and methods for treating conditions and disorders using such compounds and compositions are also described.