add submit form and post action for displaying pdf in browser