added small viewport support