fix another accidental use of window.event
add grid layout option to palette