changed all views to php