Added addentry button functionality