Update WebInterface.php

Update according to @Tro95 example