Reorganizing activities and layout resources