add publish function View and Controller 26