Fix redirect when error
Move delete button to chart settings