fixed problems

- rgb functionality
- fixed line bugs
- fixed delete bug