Adjust layout and refresh ActionBar