also document gui api