fixed callback function in share_controller