Issue#10 share idempotence

I've updated the webui code as well. Please test it out and let me know if there are any issues.