layout updates and gravity changes