adding frontend fun