Change color of rectangle when clicked