Some small changes to server. Now it supports the serverwindow properly.