get gradient for event view working