Refactor BuddyPress activity creation with the new AJAX requests instead of on page load