working code.

added a few things main thing is that favorites needs to be changed to
work. This goes hand in hand with auto populating the page info form.