adding title page as service

Refactoring: I moved the setting title of page in a service and added setting the title of page (window.title)