implement hide feature on front end