Click listener and file creating