got rid of rolling errors from js interval after visiting new or edit pin page