make active buttons work (Green color on active)