animation added for transitions