better window handeling.