panorama: add switch to indicate page initialization
panorama: better error handling