Part out html functionality