rooms depends the user and security fix
refactoring layout of rooms