creating and styling widgets