update the template and enable device app