fixed update_row function, more restyling, more refactoring. hopefully these smaller incremental changes help me get this done by the end of the month (lol probably not though)