common view for changing and adding new entry