changed anchor tag to button and proper check of undefined variable

1 job for august-2017-issue-52 in 19 seconds (queued for 2 seconds)
latest