added structures
improved ui
correctly decode and encode url