added functionailty to deatailed result page buttons