Sets title appropriately.