fix callback and fix layout centered