add sharepoint context and shorten app url