Added select/deselect element functions to the app