setting up a basic controller