Implemented deleted flag in frontend. closes #1