Fixed view problem and added some config options