adding publish feature to views