A movie i saw a few year ago that i cannot remember

It was about a couple, the boy died in a car accident due to a technical malfunction (the car belonged to the girl, he had his but he used his girlfriend’s car for X reason), from that the girl begins to feel that there is a ghost in the house but it all turned out to be a plan of the boy’s “best friend” trying to murder the girl and not him because she was the one who had to die (the friend was the one who cut the brakes) all because his friend wanted to get rid of his girlfriend because the friend fell in love with him