publish: added title changing based on view

generated from commit 6778db437b5a0b19f4258dcb2cb41f1b9e1c0b40