added diary remove function