fixed bug in which the view wouldn't update when a new file was opened
Added and tested the remove row function