Teacher view and home page media script added and modified.