add remove to frontend complete js