working p button
working search
delete function