added conditioanl css for tile clicks