Little changes in design and fixed bug which sometimes deleted headers of priolists