added Pair (for storing configurations) moved messages to common, added button listener