Adjust layout for Ajax