Added custom in and out transitions