fixed some bugs and now color buttons work