Created closeVC method, and refactored code to call method multiple time rather than calling dismissViewControllerAnimated:completion multiple times