Pritty much finished edit window, could do with some cleaning.