Add bootstrap and fix router onBeforeAction