download as pdf option added
few fixes