added and moved user and searchwords to main