pass selected layout ids to MainActivity