Merge common functions of models into _temp.py

Function list: renderTemplate, renderAndShow, getStatus and cancel are
commonly used.
NOTE: If some functions differ than the common one, leave them inside
the model, it will overload the ones in _temp.py.