added some controller methods