set up page styles, reading and writing config file