move gui namespace out of core