fix layout issues, add flat tint style, add configuration options