fix more syntax problems
fix visibility -> visible
fix syntax error
fix references in DetailPage