added some queries, on connect event for live, and layout