Do I need to refresh the page for the conditions to work?