interface improvements. Use new function to bind buttons to popups. Put UI javascript components in the .view namespace