Add logic for new log entry/edit log entry pages