Removed ipdb call and added more audit log calls to main view