added refresh functionality & delete functionality #6