Fixed build errors.

Updated to set the page title when selecting a stock; cleaned up the detail view
markup (some extra, unused divs were in there); moved the close button to the
left side to better support mobile layout.