The invention relates to the compounds of formula I and formula Ia or its pharmaceutical acceptable polymorphs, solvates, enantiomers, stereoisomers and hydrates thereof. The pharmaceutical compositions comprising an effective amount of formula I or formula Ia and methods for treating or preventing epilepsy, seizures and convulsions may be formulated for oral, buccal, rectal, topical, transdermal, transmucosal, intravenous, parenteral administration, syrup, or injection. Such compositions may be used to treatment of epilepsy, seizures and convulsions.