setting dates props and layout fix