Ive made a nice website using Jquery Mobile but I have stumbled on a bug in my site.

When i click on a page and press the back button on my android phone, the main content area that is loaded into the main page disappears. Its very weird. I can see the content initially after i hit the back button but then it just vanishes.

My question is, would there be a way to attach a javascript event to the back button on the iphone/android phones OR some other method to refresh the page OR some method to reload what was once loaded on the homepage? I guess there are a few ways to solve the error.

Has anyone else seen this problem before? I'm using an older version of jquery mobile so maybe this problem has been addressed in newer version. I'm using jQuery Mobile v1.0a4.1 with jQuery v1.6.1. My first course of action is updating jquery to v1.7.2 and then update jquery mobile to the latest version too. I wanted to get my question out there in case there is nothing that can be done.