Build component functionality implementation and bug fixing