improved app to handle custom styles