Changing newLink to Post & removing all global variables