checkLocation wasnt being passed in buttonValue