Added the possibility to remove and readd click functions for animation and dialog