moved package and repository management to be right after window switch. makes sure packages are loaded when they are referenced later in .emacs