Generalizes instagram script and changes layout slightly