added bool for modal