created bug edit function in bugController