more styles and php code cleanup