Cleaner implementation of Bootstrap based widgets