animation added for layouts