Implemented custom alignment container alignment logic