added rollback function to admin