found the right get function for the element id
fixed errors
fied if statement