refactored use new separate css for transitions