Setting up basic controller