Added remove data functionality & fixed a bug that sort by date did not work