issue 21 - search works on 1st button click