register_scripts_styles function is now conditional