post reply function implementation