add dpi and view port