adding entries functionality