fixed an editing bug

from advsearch in other client you could not edit the package. fixed
this bug. also added the ability to actually edit a package from either
client.