implemented the basic switching operations between Library and Editor