Api bar improvements

If the api bar is visible and a user clicks elsewhere it closes.
Also use correct icons