Refactored title tag to use instance variable