view enter handler improvement