converting to a custom ui plugin