pdf output view added and some small changes