Properly setup viewport and take back button size into account