Added ajax function on rooms view