updated interface and main activity.