showing components as seperate function