implemented state changing mechanism for challenge on admin panel