Inserted functionality to append values to DOM