Make selection and most grid items to work. Grid splitter works also.

Known errors:
- OK button does nothing
- images and resources code is not working