added animations and resize handler