UI optimize & session invalid control