made angular to php work