Adding active state for buttons