change how position is set on the detail panel to work better for mobile