added animation handler and added more styles