Use redirect hook i.o. beforeModel
Code styling