adding transitions and animations