Changed viewport and fixed a bug with the duration formatting