adding title and button elements