before Controller