add parameter to enbale/disable animation on click