Refactored Code to provide a Compound View for a Card Layout (A header and a bofy with just a ListView)

Signed-off-by: Sanchit Srivastava <sanchit.sriv@gmail.com>