Add assignment timeline and refactor code on instructor dashboard