window size and removed hudlayer