frontend

- class rewrite ok - few fixes
- space view