Implemented layout animation and implemented layouts.