Added view file for edit homework, reworked some methods