Published button and functions now work