Lock we functionality

Added functionality for the lock on the room page.