forgot to add the full portrait-mode code