Added mapping to populate likes and flags for view