reverse commit 1ff564180 to make popups for inserting tiles work. e.g. i...

see 1ff564180