Fix bug with buttons after providing alternative argument type to goToPage