readded window logic
frame borders