support change layout with uri params. ex ?layout=compact