fixing function to manage home title