view function fixed (time to string method), make cleaned.