fixed a sprintf not enough arguments issue, also added some more try/catches around the view includes