scaled gui to window size variable