Added chart delete
Code tidy