added gui funcationality