holy moly, refactored groups into spaces, working on views now