Improvements in the smart_extends tag