add room handling in frontend