front end design and controller logic