Adding functionality to call subview animations