fixed some errors here at SiteController