Added dispose method on view controllers