Bugfixes for invitation cancelling. and jquery