added search to appointment initially