added frontend functionality