Add function to handle submitting replies