added control condition (url /main)