beds controller