added view pdf button
added btn
removed wrong var name