resetting showAdd showing false instead of using a function