fixed default tab value
PHP improvements