for picutre url correction and for redirecting to home