hi Saikiran,
Well, it does look like you could use a custom control.. go for it. On my previous reply I did hyperlink the section on the UI5 on how to create a custom control.. rather straight forward.
The "tricky" part not explained is, the "attributes" of your custom control are managed by default by UI5 and this means, UI5 will end up creating getters and setters for them.
The default mutators do not supress the invalidate on the control, which means, every time you change a property in your control it will destroy the DOM nodes (of your control and anything below it) and re-build it.
This is the worst possible behavior in terms of performance, so make sure to overwrite the mutators to supress the invalidate when needed so you don't have performance issues.
Cheers,
Dan.
PS: Case you have trouble to understand what to do I suggest you visit openui5/src/sap.ui.commons/src/sap/ui/commons at master · SAP/openui5 · GitHub because there are a lot of examples from the library itself.