fixed some little problems + raise window