adding an overridable function to allow customization of what happens when an orientation change happens