refactored hw setup gui for windows and fixed the deletion of windows