use a better way setting title of page