Altered so that html elements are rendered in cards

Altered so that html elements are rendered within the cards and also
hide certain controls if the user does not have write permissions for
the space.