Fixing the ui function to return a list of y axis chacaters