Carousel functionality and popover upgrades

A lot of upgrades on popover placement based no screen, carousel
functionality added and some corrections on code.