Moved window code to another file
Added display size code