Fixed a bug that would cause the details view to be shown upon turning off and on the screen