Added distance to center
Fixed pdf print button click