Use serialization in show action