here is a tentative code for the GUI. I followed more or less, the idea that you wanted to use for the Mobipocket reader.