updating layout main