redone some windows sutff, changed download window to a dialog