added frontend code for plot deletion.