relayout top buttons