Updated to send before and after call evetns in every link clicks