added functionality for when an invite is sent to update the complete status of the post. also if the close modal button is clicked instead of the done button, the post will be sent to facebook if an invite was sent. otherwise it will just close the modal