animating modal works, code needs cleanup still