changes for the beamer mode