conditionals to improve ux