Restored the home page and changed carrierwave to local variables