Delete buttons and flash message error