applying adding records functionality