added frontend callback functions, fixed start function