extensive rearranging of code and trying to get the aspect ratio right. Running into a bug with the back buttons