major changes,

*added back button,
*sorted out the crappy jquery code