Added codes to enable users to use detail option for automatic sorting
Added codes to get details options disable when automatic sorting is not set to "on"