add download listener. fix download bugs
add logout listener. Gui build complete