added boolean formatting function in application helper