added function to control if element exists
added volume commands