Updating publish button to use angular