Title and id functions for window