added add Record functionality