added ajax for selecting condition when adding to have list on search page, also button showing logic