fix auto layout issues and add custom appearance