getting errors loading mainview