Switch between two modes, adding new entry and displaying a list
record addition works