Revamped all views to use php variables, note: some may not be named correctly