Added general way of registering buttons for for index.svg