add active class to grid button on initial load