added styles and card functionality