added slash to end of Firebase address causeing errors, simplified controller code