added entry model and controller