Edited main controller and view to use the PHP backend