Fixed issue with programatic refresh of mainVC