Change layout of query view