Edited ""Add New Entry" function