update layout logic admin