Add activity cancel handler for cancelbtn

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>