Some styling improvements and fix for rule inputs