Refactors search fragment and resources