basic controller code added