added new styles and restructured the trasitions