Serialise view state as query parameter