controller update and added firebase