Exit popup on esc
Remove loop.widget check in toc
Make it work for pages with no iwlinks or images