add function setupLayout for baseActivity