adjusted titleLoader to switch classes on done querying rather than hide show elements, which fixes bug on mobile safari