added firebase server and updated controller and view to take advantage