clean up PHP views