Enhanced Back Button Behavior