close buttons on frames now work