use client side hide instead of server side