add default show and hide function