fix viewbox calculation error and return of the date selector