fixed some shit

delete mode works, window clears each time