Modified the exception handling
Use resources from framework when available
added margin,
cache creation of fragments