fixed formating and animation functions and added updown animation.