Added some styles and corrected issues with math problem emits