Implemented onclick in searches