Bug 1058748 - Fix gallery preview on tablet

- Fix header action and back button
This code seems like it works fine, but I'd prefer it to be inside of an if statement like this:
  if (!isPhone) { ... }
That way it will be clear to all readers that it only applies to the tablet.