fix certain issues with widget visibility conditions and static pages

fixes #107