fix css, add transition effects