Some changes are made in the template add_device and views are updated.