update roles and layout