converted commands to window from view
condensed window commands, removed to_do_list from gglobal scope