added functionality for go button