General code cleanup
general code cleanup
add a hide event handler which resets button state
minor logic cleanup
initial cut at saving floating layout panels