change layoutmanager to use the className as type not something other