update title function to be a view not window_title