Added support for top placement

Added support for top placement