Fix Api-Bar button position

In some layouts the button was on the next line

this is a sliceoff of my port-views branch