change method for getting process method from UI windows to ProcessMethod class