Set default value and shrink window