Add function to maintain filters when swapping detailed views