formatting & update manager

formatted some files, updated add item functionality in manager