update madapter template