update on click handler of fragment to use mainactivities