added ability to delete components + bug fixes