trigger view procedure and function ready