added textboxes and other functionalities