refactored code to utilize helper method
blocks created for VC animations
using isPresenting flag wherever possible
created flags for delay and implemented in code