updates styles and removes extra layout