minor adjustments and fixes to the custom fragment