adding animation and changing nav bar