added bug deleted function and view