added animation and modal