removed some redundency in instagram controller