Updated gui manager to open and close views