fixed delete func, changed some styles