easier way of changing the title and meta description without extra ifs