finish the model of adding new diary