add delete and post function