changed add item into a dialog activity