Code changes to insert the 'take photo' button to all the widgets according to the takePhoto flag received from server side