Optimal decision on dynamic insurance price and investment portfolio of an insurer