added a simple controller