Refactoring for list item that shows schedules.

Some bugs fixed as well.