changes view to have centered content in divs