modified uiview animation to use spring animation