get code and modify it for purposes of landscape/portrait modes