change nav and add overflow for pre