added code for slider and home widgets