Added list sorting, state maintenance, and fragments