partially implemented more window behavior