make window unresizeble for max Values